#ifndef _THREAD_H_
#define _THREAD_H_

#if _WIN32 || _WIN64
#else
#include <pthread.h>
#endif

#include "typedef.h"
#include "define.h"

MMOSDK_NAMESPACE_BEGIN(mmo)

class thread// : public mmo::no_copy
{
    public:
#if _WIN32 || _WIN64
	typedef HANDLE native_handle_type;
#else
	typedef pthread_t native_handle_type;
#endif
    public:
	thread() : my_handle(0) {}
    public:

    private:
	native_handle_type my_handle;
};

MMOSDK_NAMESPACE_END

#endif
